/*
页面加载完毕 发起请求获取七牛token，通过前台传到七牛
*/
function getTokenMessage() {
	var url="";
	var qiniupercent="qiniupercent";
	var uploader="btn-uploader";
	var pickfiles="pickfiles";
	$.ajax({
		url: '/index.php/admin/Common/token',
		type: 'POST',
		data: {},
		cache: false,
		contentType: false,    //不可缺
		processData: false,    //不可缺
		dataType : 'json',
		success: function (data) {
			var obj = data;
			uploaderReady(obj.uptoken,url,qiniupercent,uploader,pickfiles);
		  }
		});
}


$(function() {
	
	getTokenMessage();
	
	
});